package io.renren.modules.news.service;

import io.renren.modules.news.entity.NewsEntity;

import java.util.List;
import java.util.Map;

/**
 * 
 * 
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2017-10-24 18:46:40
 */
public interface NewsService {
	
	NewsEntity queryObject(Long id);
	
	List<NewsEntity> queryList(Map<String, Object> map);
	
	int queryTotal(Map<String, Object> map);
	
	void save(NewsEntity news);
	
	void update(NewsEntity news);
	
	void delete(Long id);
	
	void deleteBatch(Long[] ids);
}
